package cn.hj.order.domain;


import cn.hj.basic.domain.BaseDomain;
import cn.hj.org.domain.Shop;
import cn.hj.pet.domain.Pet;
import cn.hj.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdoptOrder extends BaseDomain {

    private String digest;

    private Integer state;//0 待支付  1 待发货 2 待确认 3 已完成 -1 已取消

    private BigDecimal price;

    private String orderSn;

    private String paySn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastPayTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastConfirmTime;

    private Long pet_id;

    private Long user_id;

    private Long shop_id;

    private Pet pet;

    private Shop shop;

    private User user;

}
